package per.ethan.javase.java8.optional;

/**
 * @author Ethan
 * @date 2020/05/06 15:27
 */
public class Boy {

    private String name;

    private Girl girl;

    public Girl getGirl() {
        return girl;
    }

    public void setGirl(Girl girl) {
        this.girl = girl;
    }

    public Boy() {
    }

    public Boy(String name, Girl girl) {
        this.name = name;
        this.girl = girl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
